import { SetPlatformModuleViews, GetBanner } from "~/api";

export const useContent = () => {
    const BannerList = ref([]);

    const GetBannerList = async (category_id) => {
        const res = await GetBanner({ category_id });
        if (res.code == 200) {
            BannerList.value = res.data;
        }
    };

    SetPlatformModuleViews({ name: "关于我们" });

    return {
        BannerList,
        GetBannerList,
    };
};
